package cn.kent.abstractFactoryPattern;

/**
 * @author kent
 * @date 2021/5/13 9:46
 */
public class DoubleSexHumanFactory extends AbstractHumanFactory {
    @Override
    public Human createYellowHuman() {
        return super.createHuman(HumanEnum.YellowDoubleSexHuman);
    }

    @Override
    public Human createWhiteHuman() {
        return super.createHuman(HumanEnum.WhiteDoubleSexHuman);
    }

    @Override
    public Human createBlackHuman() {
        return super.createHuman(HumanEnum.BlackDoubleSexHuman);
    }
}
